'''
Created on Sep 4, 2011

@author: david
'''
from pspy.gae.actiondomain import PspyAction
import logging
class G6Action(PspyAction):
    """
    Base Action class to handle
    session / auth checks for G6.
    """
    def auth_check(self):
        
        rv = self.sess_check()
        logging.debug("~~ %s: %s" % (rv,self.request.session))
        
        return rv[0] and self.request.session.has_key('acct')
    
    def sess_check(self, createOnFail=False):
        return PspyAction.sess_check(self, createOnFail=createOnFail)
